﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	[Table("WX_Menu")]
	public partial class WX_Menu
	{
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("PID")]
		public int PID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("Code")]
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string Code { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("Name")]
		[StringLength(10, ErrorMessage = "{0}长度不能超过{1}")]
		public string Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("Type")]
		public int Type { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("AppID")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string AppID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("Url")]
		[StringLength(200, ErrorMessage = "{0}长度不能超过{1}")]
		public string Url { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("PagePath")]
		[StringLength(300, ErrorMessage = "{0}长度不能超过{1}")]
		public string PagePath { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("MediaID")]
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string MediaID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("Sort")]
		public int Sort { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[Column("AddDate")]
		public DateTime AddDate { get; set; }

		/// <summary>
		/// 创建人ID
		/// </summary>
		[Column("AddManID")]
		public int AddManID { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		[Column("AddManName")]
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string AddManName { get; set; }
	}
}
